
import {actionTypes} from '../reducers';

// ============ 计数
export function modCountAdd(id) {
  return {
    type: actionTypes.ADD,
    // payload: { id },
  };
}

export function modCountMinus(id) {
  return {
    type: actionTypes.MINUS,
    // payload: { id },
  };
}

// ============ 绘制模式
export function modDrawMode(mode) {
  return {
    type: actionTypes.DRAW_MODE,
    payload: mode,
  };
}
export function modClearDrawMode(){
  return {
    type: actionTypes.DRAW_CLEAR
  }
}
export function modDrawAttr(data) {
  return {
    type: actionTypes.DRAW_ATTR,
    payload: data
  }
}